00001 00005 class OSGWindows; 00006 00007 class CommandTranslate :public Command 00008 { 00009 private: 00010 00015 OSGWindows* osgwind_; 00016 00021 vector <TraffEduObject*> translatedObjs_; 00022 00027 osg::Vec3 old_position_; 00028 00033 osg::Vec3 new_position_; 00034 00039 TraffEduObject* obj_; 00040 00045 int first_entrance; 00046 00047 public: 00048 00057 CommandTranslate(TraffEduObject* obj, osg::Vec3 old_position,osg::Vec3 new_position,OSGWindows* osgwind); 00058 00063 bool execute(); 00064 00069 bool unexecute(); 00070 };
1.4.6-NO